package com.jrx.anytxn.transaction.job.marketingFile.step;

import com.jrx.anytxn.customer.entity.TlMarketingRecord;
import com.jrx.anytxn.transaction.service.IMarketingFileService;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MarketingDetailFileProcessor implements ItemProcessor<TlMarketingRecord, String> {

    @Autowired
    private IMarketingFileService marketingFileService;

    @Override
    public String process(TlMarketingRecord item) throws Exception {

        return marketingFileService.createMarketingDetialFileMessage(item);
    }
}
